package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 收货地址
 * </p>
 *
 * @author zl
 * @since 2025-10-18
 */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("t_user_address")
        public class UserAddress implements Serializable {

        private static final long serialVersionUID = 1L;
    
                        @TableId(value = "id", type = IdType.AUTO)
                private Long id;

        @TableField("create_time")
    private Long createTime;

        @TableField("update_time")
    private Long updateTime;

            /**
             * 登录用户
             */
        @TableField("user_id")
    private Long userId;

            /**
             * 收货人
             */
        @TableField("reciver")
    private String reciver;

            /**
             * 区域
             */
        @TableField("area_code")
    private String areaCode;

            /**
             * 详细地址
             */
        @TableField("address")
    private String address;

            /**
             * 全地址
             */
        @TableField("full_address")
    private String fullAddress;

            /**
             * 手机号码
             */
        @TableField("phone")
    private String phone;

            /**
             * 备用手机号
             */
        @TableField("phone_back")
    private String phoneBack;

            /**
             * 固定电话
             */
        @TableField("tel")
    private String tel;

            /**
             * 邮编
             */
        @TableField("post_code")
    private String postCode;

            /**
             * 电子邮件
             */
        @TableField("email")
    private String email;

            /**
             * 是否默认
             */
        @TableField("default_address")
    private Byte defaultAddress;
    }